import request from '@/utils/request';

// 活动列表
export function getFissionList(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/list',
        method: 'POST',
        data,
        noNeedLoading: true
    });
}
// 开始/结束
export function fissionChange(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/change',
        method: 'POST',
        data,
        noNeedLoading: true
    });
}
// 批量删除/删除
export function fissiondDel(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/del',
        method: 'post',
        data,
        noNeedLoading: true
    });
}
// 下载/批量下载
export function fissiondDownload(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/download',
        method: 'post',
        data
    });
}
// 参与明细-基本信息
export function partakeBaseinfo(params: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/partake/baseinfo',
        params
    });
}
// 参与明细-列表筛选
export function partakeList(params: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/partake/list',
        params
    });
}
// 参与明细-列表筛选
export function partakeRecord(params: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/partake/record',
        params
    });
}
// 新建活动
export function getFissionAdd(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/add',
        method: 'POST',
        data
    });
}
// 查看
export function fissionInfo(params: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/info',
        params
    });
}
// 编辑
export function fissionEdit(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/edit',
        method: 'POST',
        data
    });
}
// 发放
export function fissionDispense(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/partake/dispense',
        method: 'POST',
        data
    });
}
// 导出
export function fissionExport(data: any) {
    return request({
        url: '/scrm-api/console/market/red-fission/partake/export',
        method: 'POST',
        data
    });
}
